<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生问题列表</title>
</head>
<body>
	<jsp:include page="../top/top.jsp"></jsp:include>
	<div class="table_content">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title">学生问题列表：</h3>
			</div>
			<div class="panel-body">
				<div id="toolbar">
					<form action="" method="post" id="searchForm">
						<div class="question_search">
							<ul>
								<li><input type="checkbox" id="check1" name="my"
									checked="checked" value="${CURRENT_OPERATOR.id }" /> <label
									for="check1">我的提问</label></li>
								<li><input type="checkbox" id="check2" name="categorys"
									value="J2SE" /> <label for="check2">J2SE</label></li>
								<li><input type="checkbox" id="check3" name="categorys"
									value="J2EE" /> <label for="check3">J2EE</label></li>
								<li><input type="checkbox" id="check4" name="categorys"
									value="JAVASCRIPT" /> <label for="check4">JAVASCRIPT</label></li>
								<li><input type="checkbox" id="check5" name="categorys"
									value="JQUERY" /> <label for="check5">JQUERY</label></li>
								<li><input type="checkbox" id="check6" name="categorys"
									value="FRONT" /> <label for="check6">前端</label></li>
								<li><input type="checkbox" id="check7" name="categorys"
									value="DEV_TOOL" /> <label for="check7">开发工具</label></li>
								<li><input type="checkbox" id="check8" name="categorys"
									value="OTHER" /> <label for="check8">其他</label></li>
								<li><input type="checkbox" id="check9" checked="checked"
									name="solveType" value="N" /> <label for="check9">未解决</label></li>
								<li><input type="checkbox" id="check00" name="solveType"
									checked="checked" value="Y" /> <label for="check00">已解决</label></li>
							</ul>
						</div>
					</form>
				</div>

				<div class="table_container">
					<table id="q_list">
					</table>
				</div>

			</div>
		</div>


	</div>

	<div id="dialog_update" title="修改题目：" style="display: none;">
		<div class="add_q">
			<form class="form-horizontal" role="form" id="updateForm">
				<input type="hidden" name="id" id="update_id" /> <input
					type="hidden" name="questionAttachmentId" id="questionAttachmentId" />
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">标题：</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="update_title"
							name="title" placeholder="请输入问题标题" title="问题标题只能是30个字">
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">描述：</label>
					<div class="col-sm-10">
						<textarea class="form-control" rows="3" id="update_content"
							name="questionContent" title="填写详细便于老师理解"></textarea>
					</div>
				</div>
				<!-- 做一个i给用户提示：修改后原来附件将被删除，如果需要请先下载原来附件 -->
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">附件：</label>
					<div class="col-sm-10">
						<input id="file-3" type="file" multiple=true><br> <span
							style="color: red">注意：修改后原来附件将被删除，如果需要请先下载原来附件</span><br> <span
							id="old_attach" style="color: green;"></span>
					</div>
				</div>

				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">分类：</label>
					<div class="col-sm-10">
						<select class="combox" id="categray" name="categray">
							<option value="J2SE">J2SE</option>
							<option value="J2EE">J2EE</option>
							<option value="JAVASCRIPT">JAVASCRIPT</option>
							<option value="JQUERY">JQUERY</option>
							<option value="FRONT">前端</option>
							<option value="DEV_TOOL">开发工具</option>
							<option value="OTHER">其他</option>
						</select>
					</div>
				</div>


				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">沟通:</label>
					<div class="col-sm-10">
						<div id="radioset">
							<ul>
								<li><input type="radio" id="radio1" name="needFaceComm"
									value="Y" /><label for="radio1">需要和老师当面沟通</label></li>
								<li><input type="radio" id="radio2" name="needFaceComm"
									checked="checked" value="N" /><label for="radio2">不需要当面沟通</label></li>
							</ul>
						</div>
					</div>
				</div>


				<div class="form-group" id="btnFormGroup">
					<div class="col-sm-12">
						<button type="button" class="btn btn-primary"
							onclick="window.open('/qaplus/stuAddQuestion/stuAddQuestion.jsp', '学生提问', null, null);">跑去提问</button>
						<button type="button" class="btn btn-primary" id="doUpdateBtn">确认修改</button>
					</div>
				</div>
			</form>
		</div>
	</div>

	<div class="answer">
		<div id="dialog_answer" title="教师答案："
			style="display: none; margin: 0 5px;">
			<div id="answerContent"></div>
		</div>
	</div>
</body>
</html>